package model

type GuitarESModel struct {
	GuitarId int64  `json:"guitar_id"`
	Title    string `json:"title"`
}

func (GuitarESModel) IndexMapping() string {
	mapping := `{
  "mappings": {
    "properties": {
      "title": {
        "type": "text"
      },
      "guitar_id": {
        "type": "integer"
      }
    }
  }
}`
	return mapping
}

func (GuitarESModel) IndexName() string {
	return "guitar"
}

func NewGuitarESModel() *GuitarESModel {
	return &GuitarESModel{}
}
